from zope.interface import implements
import os, sys

APPLICATION_INSTALL_DIR = os.environ.get('SIMPLEWATCHER_INSTALL')
if not APPLICATION_INSTALL_DIR:
    raise EnvironmentError("must set environment variable SIMPLEWATCHER_INSTALL")
sys.path.append('%s/lib' % APPLICATION_INSTALL_DIR)
        
from watcher.exceptions import *
from watcher.action import Action

class ExternalAction(Action):
    """this can function exactly as Action does
       but is distinct fron standard actions
       as it does not describe an action to be taken
       on a WorkItem.  it's implemented identically,
       but is segmented here purely for understandability.
    """
    